package com.ruoyi.project.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ruoyi.common.annotation.Excel;

import java.io.Serializable;
import java.util.List;

/**
 * 项目模板对象 project_templete
 * 
 * @author ruoyi
 * @date 2025-07-30
 */

@TableName("project_template")
@ApiModel("项目模板实体")
@Data
public class ProjectTemplate implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID", example = "1")
    private Long id;

    /** 名字 */
    @Excel(name = "名字")
    @ApiModelProperty(value = "名字")
    private String name;

    /** url */
    @Excel(name = "url")
    @ApiModelProperty(value = "文件url")
    private String url;

    /** 顺序 */
    @Excel(name = "顺序")
    @ApiModelProperty(value = "顺序")
    private Long sort;

    /** 是否叶子节点:0:否 1:是 */
    @Excel(name = "是否叶子节点:0:否 1:是")
    @ApiModelProperty(value = "是否叶子节点:0:否 1:是")
    private Long leaf;

    /** 父id */
    @Excel(name = "父id")
    @ApiModelProperty(value = "父id")
    private Long parentId;

    @TableField(exist = false)
    @ApiModelProperty(value = "子类")
    private List<ProjectTemplate> children;
}
